
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author dttung
 */
@WebServlet("/HallofFame")
public class HallofFame extends HttpServlet{
    public void doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException, FileNotFoundException
    {
        response.setContentType("text/html; charset=UTF-8");
        PrintWriter out = response.getWriter();
        
        ServletUtil.printFistHalf(out);
        out.println("<style type=\"text/css\">\n" +
"table.tftable {font-size:12px;color:#333333;width:100%;border-width: 1px;border-color: #729ea5;border-collapse: collapse;}\n" +
"table.tftable th {font-size:12px;background-color:#acc8cc;border-width: 1px;padding: 8px;border-style: solid;border-color: #729ea5;text-align:left;}\n" +
"table.tftable tr {background-color:#d4e3e5;}\n" +
"table.tftable td {font-size:12px;border-width: 1px;padding: 8px;border-style: solid;border-color: #729ea5;}\n" +
"</style>\n" +
"<style type=\"text/css\">\n" +
"table.tftable1 {font-size:12px;color:#333333;width:100%;border-width: 1px;border-color: #ebab3a;border-collapse: collapse;}\n" +
"table.tftable1 th {font-size:12px;background-color:#e6983b;border-width: 1px;padding: 8px;border-style: solid;border-color: #ebab3a;text-align:left;}\n" +
"table.tftable1 tr {background-color:#f0c169;}\n" +
"table.tftable1 td {font-size:12px;border-width: 1px;padding: 8px;border-style: solid;border-color: #ebab3a;}\n" +
"</style>\n" +
"<br><br><strong>Mùa giải 2012-2013</strong><br><br>" +
"<table style=\"border-width: 1px; border-color: #FFCC00; background-color:#FFFFFF\" width=\"100%\" cellpadding=\"3\" cellspacing=\"3\">\n" +
"	<tr>\n" +
"		<th>Giải đấu tranh Cup</th>\n" +
"		<th>Giải TML</th>\n" +
"	</tr>\n" +
"	<tr>\n" +
"		<td valign=\"top\">\n" +
"                    <table id=\"tfhover\" class=\"tftable\" border=\"1\">\n" +
"                    <tr><th>Số đội tham gia: 32, Cup: 5</th></tr>\n" +
"                    <tr><td><font color=\"#FF4000\">Vô địch: TungDauGau</font><br><font color=\"#0080FF\">Á quân: XXX</font></td></tr>\n" +
"                    <tr><td>Tuần 1: ORANJE</td></tr>\n" +
"                    <tr><td>Tuần 2: Ca_Tó</td></tr>\n" +
"                    <tr><td>Tuần 3: TungDauGau</td></tr>\n" +
"                    <tr><td>Tuần 4: savapain</td></tr>\n" +
"                    <tr><td>Tuần 5: LetGoAheadUtd</td></tr>\n" +
"                    </table>\n" +
"                </td>\n" +
"		<td>\n" +
"\n" +
"<table id=\"tfhover\" class=\"tftable1\" border=\"1\">\n" +
"<tr><th>Số đội tham gia: 13</th></tr>\n" +
"<tr><td>Vô địch toàn mùa: TungDauGau</td></tr>\n" +
"<tr><td>Vô địch lượt về: TungDauGau</td></tr>\n" +
"<tr><td>Vô địch lượt đi: ORANJE</td></tr>\n" +
"<tr><td>Vô địch tuần:<br> savapain: 7 tuần<br>Ca_Tó: 1 tuần<br>ORANJE: 7 tuần<br>fenix: 1 tuần<br>iznogoud: 1 tuần<br>xrk: 5 tuần<br>batsach: 3 tuần<br>XXX: 5 tuần<br>Chelsea_Vietnam: 1 tuần<br>Chelsea_Blue: 5 tuần<br>TungDauGau: 3 tuần</td></tr>\n" +
"</table>\n" +
"\n" +
"	</tr>\n" +
"</table>");
        
        out.println("<style type=\"text/css\">\n" +
"table.tftable {font-size:12px;color:#333333;width:100%;border-width: 1px;border-color: #729ea5;border-collapse: collapse;}\n" +
"table.tftable th {font-size:12px;background-color:#acc8cc;border-width: 1px;padding: 8px;border-style: solid;border-color: #729ea5;text-align:left;}\n" +
"table.tftable tr {background-color:#d4e3e5;}\n" +
"table.tftable td {font-size:12px;border-width: 1px;padding: 8px;border-style: solid;border-color: #729ea5;}\n" +
"</style>\n" +
"<strong>Mùa giải 2011-2012</strong><br><br>\n" +
"<table id=\"tfhover\" class=\"tftable\" border=\"1\">\n" +
"<tr><th>Số đội tham gia: 16, Cup: 7</th></tr>\n" +
"<tr><td><font color=\"#FF4000\">Vô địch: HHP</font><br><font color=\"#0080FF\">Á quân: TheMightyReds</font></td></tr>\n" +
"<tr><td>Tuần 1: PhieuPhong</td></tr>\n" +
"<tr><td>Tuần 2: Đống Rơm</td></tr>\n" +
"<tr><td>Tuần 3: Nhong Nheo United</td></tr>\n" +
"<tr><td>Tuần 4: TheMightyReds</td></tr>\n" +
"<tr><td>Tuần 5: Đống Rơm</td></tr>\n" +
"<tr><td>Tuần 6: Thần Rùa</td></tr>\n" +
"<tr><td>Tuần 7: Đống Rơm</td></tr>\n" +
"</table>");
        
        
        ServletUtil.printSecondHalf(out);
        
    }
    @Override
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    {
        doGet(request, response);
    }
}
